<?php

use yii\helpers\Html;
use metronic\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model common\models\BookChapter */
/* @var $form metronic\widgets\ActiveForm */
?>

<div class="book-chapter-form">

    <?php $form = ActiveForm::begin() ?>

    <?= $form->field($model, 'title')->label('标题', ['class' => 'col-md-2 control-label'])->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'content')->label('章节链接', ['class' => 'col-md-2 control-label'])->textInput() ?>

    <?= $form->field($model, 'display_order')->label('章节序号', ['class' => 'col-md-2 control-label'])->numberInput(['min'=>0, 'value' => $display_order]) ?>
    
    <?php ActiveForm::end() ?>

</div>
